<?php
/**
 * Created by PhpStorm.
 * User: Duyonggao
 * Date: 2017/8/7 0007
 * Time: 上午 11:35
 */
use app\assets\AppAsset;
use utils\HelperSearch;
AppAsset::register($this);
$this->title = "郁姐网";
?>
<form class="form-inline" id="search_form" method="get" action="<?=\yii\helpers\Url::to(['search/list'],true)?>" onsubmit="return false;">
    <div class="input-group  col-lg-10">
        <input type="text" class="form-control" name="key_word" id="title_search" placeholder="请输入要搜索的内容、商品链接、商品ID或品牌">
          <span class="input-group-btn">
            <button type="submit" class="btn btn-default" type="button">搜一下 Go!</button>
          </span>
    </div>
</form>
<ul class="nav nav-tabs nav-justified" id="js_search">
    <?php foreach($list as $k => $vo){ ?>
        <li role="presentation">
            <a href="<?=\yii\helpers\Url::to(['search/list','key_word'=>$vo['word']],true)?>" class="btn btn-default"><?=$vo['word']?></a>
        </li>
    <?php } ?>
</ul>

<br/>
<div class="btn-group" role="group" aria-label="分类" id="js_menu">
    <?php foreach(HelperSearch::$couponMap as $k => $vo){ ?>
        <a href="<?=\yii\helpers\Url::to(['search/index','cat'=>$k],true)?>" class="btn btn-default"><?=$vo?></a>
    <?php } ?>
</div>

<?=$this->render("//layouts/show_list",['list'=>$data_list]);?>
<div id="pager">
    <?=$pager?>
</div>

